proto:
	make gen_ss;make gen_cs;make gen_rpc
gen_ss:
	cd protocol/ss/gen;go run gen_proto_go.go;cd ../../../
	cd protocol/ss/proto;make;cd ../../../
gen_cs:
	cd protocol/cs/gen;go run gen_proto_go.go;go run gen_proto_lua.go;cd ../../../
	cd protocol/cs/proto;make;cd ../../../
gen_rpc:
	cd rpc;go run gen_rpc.go;cd ../
build_center:
	test -d bin || mkdir -p bin
	cd bin;go build ../center/center.go;cd ../
build_dir:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_dir/main/node_dir.go;cd ../
build_login:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_login/main/node_login.go;cd ../
build_game:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_game/main/node_game.go;cd ../
build_map:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_map/main/node_map.go;cd ../
build_chat:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_chat/main/node_chat.go;cd ../
build_battle:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_battle/main/node_battle.go;cd ../
build_team:
	test -d bin || mkdir -p bin	
	cd bin;go build ../node/node_team/main/node_team.go;cd ../
exe:
	make build_center
	make build_dir
	make build_login
	make build_game
	make build_map	
	make build_chat	
	make build_battle
	make build_team

